﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for MailAccount
/// </summary>
[Serializable]
public class MailAccounts
{
	public MailAccounts()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public string Stock { get; set; }
    public string Apple { get; set; }
    public string Weather { get; set; }
    public string QQ { get; set; }

    static private MailAccounts _instance;

    static public MailAccounts GetInstance()
    {
        if(_instance == null)
        {
            DataManager mailsDataMan = new DataManager("MailAccounts.xml", typeof(MailAccounts));
            _instance = mailsDataMan.LoadData() as MailAccounts;
        }
        return _instance;
    }
}